/**
 * This class represents a tail node within a Skip list
 * @author Matt
 *
 * @param <T>
 */
public class SkipListTail<T extends Comparable<T>> extends SkipListNode<T>
{
	
	public SkipListTail()
	{
		super(null);
	}
	/**
	 * Always returns that it is greater than the passed in node
	 * @return 1
	 */
	@Override
	public int compareTo(SkipListNode<T> node)
	{
		return 1;
	}
	/**
	 * Returns that nothing is equal to infinity
	 * @return false
	 */
	@Override 
	public boolean equals(Object node)
	{
		return false;
	}
	/**
	 * Shows that a user cannot set anything as the next value
	 * @throws UnsupportedOperationException
	 */
	@Override
	public void setNext(SkipListNode<T> node)
	{
		throw new UnsupportedOperationException();
	}
	/**
	 * Shows that there is nothing in the next value
	 * @throws UnsupportedOperationException
	 */
	@Override
	public SkipListNode<T> getNext()
	{
		throw new UnsupportedOperationException();
	}
}
